﻿@{
    ViewBag.Title = @Local("UCenterConfiguration.PageTitle");
}

@model UCenterConfiguration

@using (Html.BeginForm())
{
<div class="box">
    <label>@Local("Configuration.Domain")</label>
    <div class="right">
        @Html.DropdownListForDomain(model=>model.Domain)
        <div class="summary">@Local("Configuration.Domain.Summary")</div>
    </div>
</div>
    
<div class="box">
    <label>@Local("UCenterConfiguration.AvatarWidth")</label>
    <div class="right">
        @Html.TextBoxFor(model => model.AvatarWidth)
    </div>
</div>

<div class="box">
    <label>@Local("UCenterConfiguration.AvatarHeight")</label>
    <div class="right">
        @Html.TextBoxFor(model => model.AvatarHeight)
    </div>
</div>

<div class="box">
    <label>@Local("UCenterConfiguration.EnableDefaultRole")</label>
    <div class="right">
        @Html.CheckBoxFor(m => m.EnableDefaultRole)
    </div>
</div>

<div class="box">
    <label>@Local("UCenterConfiguration.DefaultRoleIDs")</label>
    <div class="right">
        @Html.CheckBoxListForRoles(model => model.DefaultRoleIDs, ButtonFormatter.Vertical)
    </div>
</div>

<div class="box">
    <button>@Local("UCenterConfiguration.Save")</button>
</div>
}